module.exports = {
    // 基本路径
    publicPath: './',
    // 输出文件目录
    outputDir: 'dist',
    // eslint-loader 是否在保存的时候检查
    lintOnSave: true,
    // webpack-dev-server 相关配置
    // http://47.92.233.89:8020/cmadmin
    devServer: {
        port: 9999,
        host: 'localhost',
        disableHostCheck: true,
        proxy: {
            '/api': {
                target: 'http://dev.cfbond.com',
                // target: 'http://47.104.240.208', //主域名测试
                // target: 'https://geapi.cfbond.com', //主域名正式
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    },

    // webpack配置
    // see https://github.com/vuejs/vue-cli/blob/dev/docs/webpack.md
    chainWebpack: () => {},
    configureWebpack: () => {}
}